﻿using Microsoft.EntityFrameworkCore;

namespace Web.Models
{
    public class ApplicationDbContext : DbContext
    {
        /// <summary>
        /// http上下文
        /// </summary>
        public ApplicationDbContext(DbContextOptions<ApplicationDbContext> options)
            : base(options)
        {
        }

        #region base entity model
        public virtual DbSet<Order> Orders { get; set; }
        public virtual DbSet<OrderDetail> OrderDetails { get; set; }
        #endregion
    }
}
